#ifndef DIALOGADDIAGRAM_H
#define DIALOGADDIAGRAM_H

#include "chart.h"
#include <QDialog>

namespace Ui {
    class DialogADDiagram;
}

class DialogADDiagram : public QDialog {
    Q_OBJECT
public:
    DialogADDiagram(QWidget *parent = 0);
    ~DialogADDiagram();

protected:
    void changeEvent(QEvent *e);

private slots:
    void on_chbCrossroadStav_clicked();
    void on_chbCrossroadShpa_clicked();
    void on_pbMakeDiagram_clicked();
    void on_pbExportToXmlFile_clicked();

private:
    bool checkFormData();
    void updateQueryOptions();
    Chart *chart;
    QStringList queryOptions;
    QString queryOptionsSQL;
    Ui::DialogADDiagram *ui;
};

#endif // DIALOGADDIAGRAM_H
